package com.alpha.eceasy.mall.api.vo;

import com.alpha.eceasy.mall.api.entity.MallOrderDetail;
import com.alpha.eceasy.mall.api.entity.MallOrderDetailBid;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @author huangpengfei
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MallOrderDetailBidVO extends MallOrderDetailBid {
    private String commoditySpecificationName;
    private MallOrderDetail orderDetail;
	@Schema(description =  "商品数量")
	private Integer number;
    @Schema(description = "库存量单位")
    private String sku;

    public MallOrderDetailBidVO(MallOrderDetailBid entity) {
        BeanUtils.copyProperties(entity, this);
    }
}
